JBoss Community Archive (Read Only)

Teiid 8.8

Transactional Behavior with JBoss Data Source Types

JBoss AS allows creation of different types of data sources, based on their transactional capabilities. The type of data source you create for your VDB's sources also dictates if that data source will be participating the distributed transaction or not, irrespective of the transaction scope you selected from above. Here are different types of data sources

Teiid Designer creates "local" data source by default which is not optimal for the XA transactions. Teiid would like this to be creating a XA data sources, however with current limitations with DTP that feature is currently not available. To create XA data source, look in JBoss AS "doc" directory for example templates, or use the "admin-console" to create the XA data sources.

If your datasource is not XA, and not the only local source and can not use "no-tx", then you can look into extending the source to implement the compensating XA implementation. i.e. define your own resource manager for your source and manage the transaction the way you want it to behave. Note that this could be complicated if not impossible if your source natively does not support distributed XA protocol. In summay

<scroll-title title="Teiid Transaction Participation"></scroll-title>

Teiid-Tx-Scope

XA source

Local Source

No-Tx SOurce

Local

always

Only If Single Source

never

Global

always

Only If Single Source

never

Auto-commit=true, AutoCommitTxn=ON

always

Only If Single Source

never

Auto-commit=true, AutoCommitTxn=OFF

never

never

never

Auto-commit=true, AutoCommitTxn=DETECT

always

Only If Single Source

never

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 13:02:05 UTC, last content change 2014-07-17 12:34:22 UTC.